import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import type { App } from "vue";

import Svgicon from "@/components/Svgicon.vue";

export default {
  install(app: App) {
    // 注册所有图标
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }

    // 注册全局svg图标
    app.component("Svgicon", Svgicon);
  },
};
